import request from '@/utils/request'

// 查询调帐记录列表
export function listAdjust(query) {
  return request({
    url: '/AdjustMain/adjust/list',
    method: 'get',
    params: query
  })
}

export function listsum1(query) {
  return request({
    url: '/AdjustMain/adjust/listsum1',
    method: 'get',
    params: query
  })
}
// 查询调帐记录列表--循环查询调帐数据
export function listAdjustItem(query) {
  return request({
    url: '/AdjustMain/adjust/listItem',
    method: 'get',
    params: query
  })
}
// 查询调帐记录列表全部
export function listAdjustAll(query) {
  return request({
    url: '/AdjustMain/adjust/listAll',
    method: 'get',
    params: query
  })
}
// 查询调帐记录列表-金额合计
export function listAdjustsum(query) { 
  return request({
    url: '/AdjustMain/adjust/listsum',
    method: 'get',
    params: query
  })
}
// 查询调帐记录列表-金额合计
export function listAdjustsumdk(query) {
  return request({
    url: '/AdjustMain/adjust/listsumdk',
    method: 'get',
    params: query
  })
}
// 查询调帐记录列表-金额订单合计
export function listAdjustsumddje(query) {
  return request({
    url: '/AdjustMain/adjust/listsumddje',
    method: 'get',
    params: query
  })
}

// 查询调帐记录详细
export function getAdjust(transId) {
  return request({
    url: '/AdjustMain/adjust/' + transId,
    method: 'get'
  })
}

// 新增调帐记录
export function addAdjust(data) {
  return request({
    url: '/AdjustMain/adjust',
    method: 'post',
    data: data
  })
}

// 修改调帐记录
export function updateAdjust(data) {
  return request({
    url: '/AdjustMain/adjust',
    method: 'put',
    data: data
  })
}

// 删除调帐记录
export function delAdjust(transId) {
  return request({
    url: '/AdjustMain/adjust/' + transId,
    method: 'delete'
  })
}
